PowerTCP Mail for .NET
ReadToDelimiter(Byte[]) Method




The delimiter to search for.
Read until the delimiter is found, an exception is thrown, or the connection is closed.
Syntax
Public Overloads Function ReadToDelimiter( _
   ByVal delimiter() As Byte _
) As Data
Dim instance As TcpBase
Dim delimiter() As Byte
Dim value As Data
 
value = instance.ReadToDelimiter(delimiter)
public Data ReadToDelimiter( 
   byte[] delimiter
)
public: Data* ReadToDelimiter( 
   byte[]* delimiter
) 
public:
Data^ ReadToDelimiter( 
   array<byte>^ delimiter
) 

Parameters

delimiter
The delimiter to search for.

Return Value

A Data object encapsulating the received data.
Exceptions
ExceptionDescription
DataExceptionThe delimiter was not found. The DataException.DataRead property contains any data received before the failure occurred.
Remarks

This method blocks until the delimiter is found, an exception is thrown, or the server closes the connection. The value of Data.Delimiter is set to the found delimiter, if any.

If a DataException is thrown, the DataException.DataRead property contains any data received prior to the exception.

See Also

Reference

TcpBase Class
TcpBase Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic